﻿using Plugin.Factory;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using WJ.Infrastructure.Extension;

namespace Plugin.BaiDu
{
    public class BaiDuHandler:IHelper
    {
        public string DiskName
        {
            get { return "百度云盘"; }
        }


        private List<string> GetConformUrl(string urlList)
        {
            return urlList.GetMatches("yun.baidu.com/s/[a-z,0-9]*");
        }

       public List<ResultMsg> GetDownloadLink(string urlList)
        {
            throw new NotImplementedException();
        }


       public bool IsOpen
       {
           get { return false; }
       }


       public Guid EntityId
       {
           get { return Guid.NewGuid(); }
       }
    }
}
//http://d.pcs.baidu.com/file/a7d95b558d64346e8c9b620d1a998d13?fid=1697588592-250528-59768074751464&time=1421216316&rt=sh&sign=FDTAERVY-DCb740ccc5511e5e8fedcff06b081203-e6xjBF%2F%2BT0IpmyfA5tW6V7U5CeA%3D&expires=8h&prisign=GF6x2T2CVlRV01o7Pki028kp4XDNjnf6nYJvYvdmp+dC6iCzPtkM2aVC7McRJk1P9QVPB1kIp0CifNIlOMwtq9leEvhTVhjRcR83gRp4oLDRWmsGuAvcBYV8AuWyIY+M5cPSDvxRAxcWV6HHmMzWxrliTehopodSguDOH6qielpzoc1UcHaU/fJyAjkDhb8m1IDc1cNNi7Czk2IigNbePIpON97dNUrbb6hZdVZvtQ64K14ntBVc0Q==&chkv=1&chkbd=0&chkpc=et&r=645154138